﻿using Architecture.Api.Application.Command.UserCommand;
using Architecture.Service;
using MediatR;

namespace Architecture.Api.Application.CommandHandlers.UserHandler
{
    public class EmployeeCommandHandler : IRequestHandler<EmployeeCommand, object>
    {
        protected readonly IUserService _userService;

        public EmployeeCommandHandler(IUserService userService)
        {
            _userService = userService;
        }

        public async Task<object> Handle(EmployeeCommand request, CancellationToken cancellationToken)
        {
            return await _userService.GetInquire(request.ids);
        }
    }
}
